#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :test.py
# @Time      :2023/12/9 
# @Author    :CL
# @email     :1037654919@qq.com

import requests

headers = {
    "Accept": "*/*",
    "Accept-Language": "zh-CN,zh;q=0.9",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
    "Origin": "https://www.examcoo.com",
    "Pragma": "no-cache",
    "Referer": "https://www.examcoo.com/editor/do/view/id/1115083",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "same-origin",
    "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
    "X-Requested-With": "XMLHttpRequest",
    "sec-ch-ua": "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Linux\""
}
cookies = {
    "PHPSESSID": "6rjl1amrihe6nibqh781e5tpi4"
}
url = "https://www.examcoo.com/editor/comment/index"
data = {
    "id": "504447695402962945",
    "sdtId": "s1_504447695402962945_1",
    "pid": "1115083",
    "p": "1",
    "l": "0",
    "msgid": "0",
    "cmid": "0",
    "tid": "0",
    "verifydtid": "0",
    "tokenpid": "38a5054bb32994c093e36683b8c0bfe2"
}
response = requests.post(url, headers=headers, cookies=cookies, data=data)

print(response.text)
print(response)